package com.wyl.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wyl.auth.dto.SysPermissionDto;
import com.wyl.auth.dto.SysRoleDto;
import com.wyl.auth.entity.SysPermission;
import com.wyl.auth.req.SysPermissionReq;
import com.wyl.auth.req.SysRoleReq;
import com.wyl.auth.vo.SysPermissionVo;
import com.wyl.auth.vo.SysRoleVo;
import com.wyl.common.CommonPage;

import java.util.List;

public interface SysPermissionService extends IService<SysPermission> {

    /**
     * 保存
     *
     * @param dto
     */
    void save(SysPermissionDto dto);

    /**
     * 分页
     *
     * @param req
     * @return
     */
    CommonPage<SysPermissionVo> page(SysPermissionReq req);

    /**
     * 删除
     *
     * @param ids
     */
    void deleteByIds(List<Long> ids);
}
